package com.example.flybird.utils;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Rect;

public class Draw {

    public static void DrawBitmap(Resources resources, int resid, int start_x, int start_y, int end_x, int end_y, Canvas canvas) {
        Bitmap bitmap = BitmapFactory.decodeResource(resources, resid);
        Rect dst = new Rect(start_x, start_y, end_x, end_y);
        canvas.drawBitmap(bitmap, null, dst, null);

    }

}
